package com.weiz.designpatterns.facade;

public class CarFacade {
    private CarAccessories carAccessories;
    private CarBody carBody;
    private CarEngine carEngine;

    public CarFacade(){
        this.carAccessories = new CarAccessories();
        this.carBody = new CarBody();
        this.carEngine = new CarEngine();
    }

    public void CreateCar(){
        System.out.println("Creating a Car");
        this.carBody.CreateCarBody();
        this.carEngine.CreateCarEngine();
        this.carAccessories.CreateCarEngine();
        System.out.println("Your Car Engine is ready");
    }
}
